home *** CD-ROM | disk | FTP | other *** search
/ Joystick Magazine 1996 May / cd joy 71No13.iso / pc / demos / eurosoc / source / hmixfer.h < prev    next >
C/C++ Source or Header  |  1995-09-15  |  2KB  |  54 lines

  1. /****************************************************************************
  2. *
  3. *  File              : hmixfer.h
  4. *  Date Created      : 1/12/95
  5. *  Description       : transfer system
  6. *
  7. *  Programmer(s)     : Nick Skrepetos
  8. *  Last Modification : 1/24/95 - 9:51:39 AM
  9. *  Additional Notes  :
  10. *
  11. *****************************************************************************
  12. *            Copyright (c) 1994-5,  HMI, Inc.  All Rights Reserved          *
  13. ****************************************************************************/
  14.  
  15.  
  16. #ifndef  _HMI_XFER_DEFINED
  17. #define  _HMI_XFER_DEFINED
  18.  
  19. // set structure packing
  20. #pragma  pack(1)
  21.  
  22. // transfer block ID types
  23. enum
  24.    {
  25.       _XFER_BLOCK_DATA,                            // block of raw data
  26.       _XFER_BLOCK_REQUEST_ID,                      // request ID direct
  27.       _XFER_BLOCK_ID,                              // contains local target data
  28.       _XFER_BLOCK_REQUEST_RESEND,                  // request resend of block
  29.       _XFER_BLOCK_NAME,                            // user name
  30.       _XFER_BLOCK_VOICE,                           // voice data
  31.       _XFER_BLOCK_VOICE_HEADER,                    // voice header
  32.       _XFER_BLOCK_VOICE_END,                       // end of voice chunk
  33.    };
  34.  
  35. // communication structure
  36. typedef  struct   _tagXFER_BLOCK_HEADER
  37.          {
  38.  
  39.             W32     wSequence;                    // sequence ID
  40.             W32     wType;                        // block type
  41.             W32     wID;                          // block ID
  42.             W32     wLength;                      // block length
  43.             W32     wNode;                        // which node?
  44.  
  45.             W32     wUser1;                       // user area
  46.  
  47.          } _XFER_BLOCK_HEADER;
  48.  
  49. // reset structure packing
  50. #pragma  pack()
  51.  
  52. #endif
  53.  
  54.